/**Author:7rATM Team
 * Date:May 2009
 * Description: The class DaliyDB models a database of daily record the user action. It uses a collection of daily instances
 */
package AtmSystem;
import java.util.*;
public class DaliyDB 
{
                /* Collection of <code>daliys</code> objects.*/
		private Vector <Daliy> daliys;
                /**
                 * Constructs an empty backacccounts database.
                 */
		public DaliyDB()
		{
		daliys = new Vector();
		}
                /**
                 * Adds a {@link Daliy} object to this daliys database.
                 *
                 * @param newDaliy  the {@link Daliy} object.
                 */
		public boolean add(Daliy newDaliy)
		{
			return daliys.add(newDaliy);
		}

                       /**
                        * Returns the index of daliys 
                        *
                        * @return  the index of daliys 
                        */
			public Daliy get(int index)
		{
			return (Daliy) daliys.get(index);
		}

	                /**
                         * Returns the number of daliys 
                         *
                         * @return  the number of daliys  .
                         */	
			public int getNumbers()
		{
			return daliys.size();
		}
}
